package router

import (
	"SE/controller"
	"SE/global"
	"SE/repository"
	"SE/service"
	"github.com/gin-gonic/gin"
)

func CarRouter(Router *gin.RouterGroup) {
	car := Router.Group("/car")
	{
		//car.GET("/list", controller.CarList)
		carRepo := repository.NewCarRepository(global.DB)
		carService := service.NewCarService(carRepo)
		carController := controller.NewCarController(carService)
		car.POST("/in", carController.CarIn)
		car.POST("/out", carController.CarOut)
	}
}
